html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

@font-face {
	font-family: 'Roboto';
	src: url('../fonts/RobotoRegular.eot');
	src: local('RobotoRegular'), local('Roboto-Regular'),
		url('../fonts/RobotoRegular.woff2') format('woff2'),
    url('../fonts/RobotoRegular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
  font-display: swap;
}

@font-face {
	font-family: 'Roboto';
	src: url('../fonts/RobotoBold.eot');
	src: local('RobotoBold'), local('RobotoBold'),
		url('../fonts/RobotoBold.woff2') format('woff2'),
    url('../fonts/RobotoBold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
  font-display: swap;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

:root {
  --white-color: #ffffff;
  --black-color: #000000;
  --blue-color: #3F2AFF;
  --dark-blue-color: #1200b0;
  --sun-blue-color: #3287ff;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  min-width: 320px;
  background-color: var(--white-color);
  margin: 0;
}

/* glob */

.list-reset {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.btn-reset {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.flex {
  display: flex;
}

.container {
  max-width: 1440px;
  padding-left: 165px;
  padding-right: 165px;
  width: 100%;
  margin: 0 auto;
}

.section-title {
  margin: 0;
  margin-bottom: 27px;
  font-weight: 700;
  font-size: 40px;
  line-height: 40px;
}

.section-descr {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

.section-offset {
  padding-bottom: 80px;
}

.btn {
  position: relative;
  outline: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 21px;
  padding: 24px 72px;
  background-color: var(--blue-color);
  color: var(--white-color);
  border-radius: 20px;
  border: none;
  transition: background-color 0.3s ease-in-out;
}

.btn:focus-visible {
  border: none;
  background-color: var(--sun-blue-color);
}

.btn:hover {
  background-color: var(--sun-blue-color);
}

.btn:active {
  background-color: var(--dark-blue-color);
}


/* header  */

.header {
  background-color: var(--blue-color);
}

.header__content {
  padding-top: 30px;
  padding-bottom: 25px;
  justify-content: space-between;
  position: relative;
}

.header__logo:focus-visible {
  outline: none;
}

.header__link {
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 21px;
  color: var(--white-color);
  position: relative;
  transition: all .3s ease-in-out;
}

.header__item:not(:last-child) {
  margin-right: 58px;
}

.header__link:hover {
  text-shadow: 0 0 15px var(--white-color);
}

.header__link:focus-visible {
  outline: none;
  outline-offset: 2px;
  outline: 1px solid var(--white-color);
}

.header__link:active {
  color: var(--dark-blue-color);
  text-shadow: 0 0 15px var(--dark-blue-color);
}

/* home  */

.home {
  background: radial-gradient(44.07% 44.07% at 67.78% 55.93%, #555681 0%, #212133 100%);
  padding-bottom: 0;
}

.home__content {
  background-image: url(../image/homeBack.png);
  background-size: 55%;
  background-repeat: no-repeat;
  background-position: 96% 54%;
}

.home__text {
  padding-bottom: 130px;
  padding-top: 130px;
}

.home__title {
  font-style: normal;
  font-weight: 700;
  font-size: 60px;
  line-height: 100%;
  color: var(--white-color);
}

.home__descr {
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: var(--white-color);
  width: 84%;
  margin-bottom: 62px;
}


/* about  */

.about {
  padding-top: 80px;
  padding-bottom: 77px;
}

.about__content {
  margin-bottom: 24px;
}

.about__img {
  width: 65%;
  margin-right: 30px;
  padding-top: 22px;
  height: 100%;
}

.about__title {
  width: 70%;
  font-weight: 700;
  font-size: 40px;
  line-height: 100%;
  color: #2E2B44;
  margin-bottom: 16px;
}

.about__descr {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #666666;
}

.about__picture {
  margin-right: 23px;
  width: 60%;
}

.about__exception {
  margin-right: 10px;
}

.about__text {
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  color: #666666;
  padding-top: 12px;
}


/* teacher  */

.teacher {
  padding-bottom: 2px;
  background-color: #212133;
}

.teacher__container {
  padding-top: 74px;
  padding-bottom: 73px;
}

.teacher__title {
  font-weight: 700;
  font-size: 40px;
  line-height: 100%;
  color: var(--white-color);
  margin-bottom: 24px;
}

.teacher__picture img {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
  margin-bottom: 25px;
}

.teacher__content__title {
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  color: var(--white-color);
  margin-bottom: 7px;
}

.teacher__content__descr {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #85859B;
}


/* course  */

.course {
  padding-top: 74px;
  padding-bottom: 82px;
}

.course__title {
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 100%;
  color: #212133;
  margin-bottom: 25px;
}

.course__distance {
  margin-bottom: 34px;
}

.course__back {
  flex-direction: column;
  background: #EDF0F9;
  border-radius: 20px;
  justify-content: flex-start;
  height: 100%;
}

.course__content {
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.course__content-text {
  margin-bottom: 49px;
}

.course__content-title {
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  color: #212133;
  margin-bottom: 7px;
}

.course__descr {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #666666;
}

.course__btn {
  padding: 20px 58px;
  cursor: pointer;
  align-self: start;
  letter-spacing: -1.5px;
}

.course__img {
  position: relative;
}

.clock {
  position: absolute;
  top: -5px;
  right: 5px;
  align-items: center;
}

.clock__img {
  margin-right: 5px;
}

.clock__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: var(--white-color);
}


/* footer  */

.footer__up {
  background-color: #2E2B44;
  padding-bottom: 0;
}

.footer__top {
  padding-top: 30px;
  padding-bottom: 23px;
}

.footer__list {
  justify-content: center;
}

.footer__item:not(:last-child) {
  margin-right: 30px;
}

.footer__bottom {
  text-align: center;
}

.footer__descr {
  font-weight: 400;
  font-size: 13px;
  line-height: 15px;
  text-transform: uppercase;
  color: #2E2B44;
}

.reg {
  color: #3F2AFF;
}

.footer__fb, .footer__tw, .footer__inst, .footer__you {
  fill: var(--white-color);
  transition: all .3s ease-in-out;
}

.footer__fb:hover, .footer__tw:hover, .footer__inst:hover, .footer__you:hover {
  transform: scale(1.2);
}

.footer__link:focus-visible {
  outline: none;
}

.footer__link:focus-visible .footer__fb {
  transform: scale(1.2);
}

.footer__link:focus-visible .footer__tw {
  transform: scale(1.2);
}

.footer__link:focus-visible .footer__inst {
  transform: scale(1.2);
}

.footer__link:focus-visible .footer__you {
  transform: scale(1.2);
}

.footer__link:active .footer__fb {
  fill: var(--sun-blue-color);
}

.footer__link:active .footer__tw {
  fill: var(--sun-blue-color);
}

.footer__link:active .footer__inst {
  fill: var(--sun-blue-color);
}

.footer__link:active .footer__you {
  fill: var(--sun-blue-color);
}
